package com.alangyun.remind.vo.talent;

import java.io.Serializable;

/**
 * 中青年人员结构比例实体
 *
 * @class com.alangyun.remind.vo.talent.AgeRatioView
 * @company 北京诚朗信息技术有限公司
 * @author hoobort klxukun@126.com
 * @datetime 2022年11月15日 下午8:57:13
 *
 */
public class AgeRatioView implements Serializable {

	private String name;
	private Integer count;
	private String percent;
	
	public static AgeRatioView create(String name, int count, int total) {
		AgeRatioView ret = new AgeRatioView();
		ret.name = name;
		ret.count = count;
		ret.percent = String.format("%.2f%%", count * 100.0 / total);
		
		return ret;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public String getPercent() {
		return percent;
	}

	public void setPercent(String percent) {
		this.percent = percent;
	}

}
